package com.wxy.demo.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.*;

/***
 * <p>
 * Description: 描述
 * </p>
 * @author wangxiaoyuan
 * @date 2021年08月24日
 */
@Data
@Accessors(chain = true)
public class User {

    private Integer id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    private String password;

    @NotNull(message = "年龄不能为空")
    private Integer age;

    private String sex;

    private List<Book> books;
    private Map<String, Object> map;
    private List<Integer> list;
    private Book book;
}
